package com.projectbox.model;

public class Resource {

	private Long id;
	private String name;
	private String description;
	private String type;
	private String path;
	private long timeCreated;
	private long timeModified;
	private Long uid;
	private Long pid;
	private Long fid;
	private Long lastModId;
	private User owner;
	private Project project;
	private User lastModifier;
	
	private byte[] file;
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return this.description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getType() {
		return this.type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getPath() {
		return this.path;
	}
	
	public void setPath(String path) {
		this.path = path;
	}
	
	public long getTimeCreated() {
		return this.timeCreated;
	}

	public void setTimeCreated(long timeCreated) {
		this.timeCreated = timeCreated;
	}

	public long getTimeModified() {
		return this.timeModified;
	}

	public void setTimeModified(long timeModified) {
		this.timeModified = timeModified;
	}
	
	public Long getUid() {
		return this.uid;
	}
	
	public void setUid(long uid) {
		this.uid = uid;
	}
	
	public Long getPid() {
		return this.pid;
	}
	
	public void setPid(long pid) {
		this.pid = pid;
	}
	
	public Long getFid() {
		return this.fid;
	}
	
	public void setFid(long fid) {
		this.fid = fid;
	}
	
	public Long getLastModId() {
		return this.lastModId;
	}
	
	public void setLastModId(long lastModId) {
		this.lastModId = lastModId;
	}
	
	public byte[] getFile() {
		return this.file;
	}
	
	public void setFile(byte[] file) {
		this.file = file;
	}
	
	public User getOwner() {
		return this.owner;
	}
	
	public void setOwner(User user) {
		this.owner = user;
	}
	
	public Project getProject() {
		return this.project;
	}
	
	public void setProject(Project project) {
		this.project = project;
	}
	
	public User getLastModifier() {
		return this.lastModifier;
	}
	
	public void setLastModifier(User user) {
		this.lastModifier = user;
	}
	
	public String toString() {
		return "{" + "id:" + this.id + ", " + "name:" + this.name + ", "
				+ "description:" + this.description + ", "
				+ "timeCreated:" + this.timeCreated + ", "
				+ "timeModified:" + this.timeModified + ", "
				+ "ownerId:" + this.uid + ", " + "projectId:" + this.pid + ", "
				+ "lastModId:" + this.lastModId
				+  "owner:" + this.owner + ", " + "project:" + this.project + ", "
				+ "lastModId:" + this.lastModifier + "}";
	}
	
}
